var express = require('express');
var router = express.Router();
const mongoose = require('mongoose');

const Cat = mongoose.model('Cat',{name:String})

/* GET home page. */
router.get('/', function(req, res, next) {
  // res.render('index', { title: 'Express' });
  const Kitty = new Cat ({name:'zhangsan'});
  Kitty.save().then(console.log('成功了'))
});

module.exports = router;
